package com.pro.springbootshop.service;

import com.pro.springbootshop.entity.Buyer;
import com.pro.springbootshop.entityExtend.BuyerReturn;
import java.util.List;
import java.util.Map;

public interface BuyerService {
    String saveBuyer(Buyer buyer);
    String loginBuyer(Buyer buyer);
    Map<String,String> getBuyer(String token);
    String updateBuyer(Buyer buyer);
    String updateAddress(String address,String token);
    String changeAddress(String address,String token);
    String updateBuyerPw(String oldBuyerPw, String buyerPw, String token);
    BuyerReturn sellerGetBuyerIPage(Integer page, Integer limit);
    List<Buyer> sellerGetBuyerList();
    String adminDeleteBuyer(String buyerId);
}
